﻿@model IEnumerable<GSLMS.Entity.TB_APP_REGINFO>
@{
    Layout = null;
    ViewBag.ViewTitle = "申请登记";
    int i = 1;
    var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.TB_APP_REGINFO ?? new GSLMS.Entity.TB_APP_REGINFO();
    SearchParma.REGDATE = DateTime.Now.AddMonths(-1);
    SearchParma.REGDATE_END = DateTime.Now;
    var SalesMan = ViewData["SalesMan"] as SelectList;
    var RegStatus = ViewData["RegStatus"] as SelectList;
}
<form id="pagerForm" method="get" action="DianDang/Default/RegInfos?action=page&OpID=@ViewData["OperateID"]">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
<input type="hidden" name="CUSTNAME" value="@SearchParma.CUSTNAME" />
</form>
<div class="pageContent">
    @Html.Partial("Buttons")
    <table class="list" width="100%" layouth="120">
        <thead>
            <tr class="header">
                <th style="width: 60px">
                    序号
                </th>
                <th>
                    客户名称
                </th>
                <th>
                    证件号码
                </th>
                <th>
                    来源渠道
                </th>
                <th>
                    业务员
                </th>
                <th>
                    登记时间
                </th>
                <th>
                    最后跟进时间
                </th>
                <th>
                    重要级别
                </th>
                <th>
                    状态
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="ApplyList_id" rel="@item.ID" BussType="@item.BUSSTYPE" Status="@item.STATUS">
                <td>
                    @i
                </td>
                <td>
                    @item.CUSTNAME
                </td>
                <td>
                    @item.CUSTNO
                </td>
                <td>
                    @item.SOURCE
                </td>
                <td>
                    @item.SALESMAN
                </td>
                <td>
                    <span formatdate="yyyy-MM-dd">@item.REGDATE</span>
                </td>
                <td>
                    <span formatdate="yyyy-MM-dd">@item.LASTFLOWDATE</span>
                </td>
                <td>
                    @item.IMPORTANTLEVEL
                </td>
                <td>
                    @((GSLMS.Entity.Enum.ApplyEnum.RegStatus)item.STATUS)
                </td>
            </tr>
            i += 1;
        }
    </table>
    @Html.Partial("PageBar")
    <div class="formBar">
        <ul>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            返回列表</button></div>
                </div>
            </li>
        </ul>
    </div>
</div>
